/*
 * bsp_tim.c
 *
 *  Created on: Jun 29, 2025
 *      Author: User
 */

#include "bsp_tim.h"


void BSP_MX_TIM3_Config(void) {
	MX_TIM3_Init();
	/*##-2- Start the TIM Base generation in interrupt mode ####################*/
	/* Start Channel1 */
	if(HAL_TIM_Base_Start_IT(&htim3) != HAL_OK)
	{
		/* Starting Error */
		Error_Handler();
	}
}
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
	if (htim->Instance == TIM3){
		time_flag = 1;
//		Upload_To_Xiankong();
	}
}
